package com.youkeyi.ddy.cloud.common.api.application.business.storage.stock;

import com.youkeyi.ddy.cloud.common.api.application.business.storage.stock.dto.BusinessStockListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.business.storage.stock.param.BusinessStockCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.storage.stock.param.BusinessStockListCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * BusinessStockCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 1/28/22 4:12 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/business/stock/fallback")
public class BusinessStockCloudServiceFallback implements BusinessStockCloudService {

    @Override
    public BusinessStockListCloudDto list(BusinessStockListCloudParam param) {
        return new BusinessStockListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(BusinessStockCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

}
